const fileService = require("@/server/file");
const { sendData } = require("@/utils/r/result");
const { ErrorCode } = require("@/utils/r/code");

const UploadFile = async (req, res) => {
  let filepath = await fileService.UploadFile(req);
  sendData(res, ErrorCode.OK, filepath);
};

module.exports = {
  UploadFile,
};
